3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides a number of general routines for operating with draw context objects.
You can use the Q3DrawContext_GetType function to get the type of a draw context.
TQ3ObjectType Q3DrawContext_GetType (TQ3DrawContextObject drawContext);
The Q3DrawContext_GetType function returns, as its function result, the type of the draw context specified by the drawContext parameter. The types of draw contexts currently supported by QuickDraw 3D are defined by these constants:
kQ3DrawContextTypeMacintosh
kQ3DrawContextTypePixmap
kQ3DrawContextTypeWin32DC
kQ3DrawContextTypeDDSurface
You can use the Q3DrawContext_GetData function to get the data associated with a draw context.
TQ3Status Q3DrawContext_GetData (
TQ3DrawContextObject context,
TQ3DrawContextData *contextData);
You can use the Q3DrawContext_SetData function to set the data associated with a draw context.
TQ3Status Q3DrawContext_SetData (
TQ3DrawContextObject context,
const TQ3DrawContextData *contextData);
You can use the Q3DrawContext_GetClearImageColor function to get the image clearing color of a draw context.
TQ3Status Q3DrawContext_GetClearImageColor (
TQ3DrawContextObject context,
TQ3ColorARGB *color);
You can use the Q3DrawContext_SetClearImageColor function to set the image clearing color of a draw context.
TQ3Status Q3DrawContext_SetClearImageColor (
TQ3DrawContextObject context,
const TQ3ColorARGB *color);
You can use the Q3DrawContext_GetPane function to get the pane of a draw context.
TQ3Status Q3DrawContext_GetPane (
TQ3DrawContextObject context,
TQ3Area *pane);
You can use the Q3DrawContext_SetPane function to set the pane of a draw context.
TQ3Status Q3DrawContext_SetPane (
TQ3DrawContextObject context,
const TQ3Area *pane);
You can use the Q3DrawContext_GetPaneState function to get the pane state of a draw context.
TQ3Status Q3DrawContext_GetPaneState (
TQ3DrawContextObject context,
TQ3Boolean *state);
You can use the Q3DrawContext_SetPaneState function to set the pane state of a draw context.
TQ3Status Q3DrawContext_SetPaneState (
TQ3DrawContextObject context,
TQ3Boolean state);
The Q3DrawContext_SetPaneState function sets the pane state of the draw context specified by the context parameter to the value specified in the state parameter. If the value of state is kQ3True , the pane associated with that draw context is to be used; if kQ3False , the pane is not used.
You can use the Q3DrawContext_GetClearImageMethod function to get the image clearing method of a draw context.
TQ3Status Q3DrawContext_GetClearImageMethod (
TQ3DrawContextObject context,
TQ3DrawContextClearImageMethod *method);
You can use the Q3DrawContext_SetClearImageMethod function to set the image clearing method of a draw context.
TQ3Status Q3DrawContext_SetClearImageMethod (
TQ3DrawContextObject context,
TQ3DrawContextClearImageMethod method);
You can use the Q3DrawContext_GetMask function to get the mask of a draw context.
TQ3Status Q3DrawContext_GetMask (
TQ3DrawContextObject context,
TQ3Bitmap *mask);
The Q3DrawContext_GetMask function returns, in the mask parameter, the current mask for the draw context specified by the context parameter. The mask is a bitmap whose bits determine whether or not corresponding pixels in the drawing destination are drawn or are masked out. Q3DrawContext_GetMask allocates memory internally for the returned bitmap; when you're done using the bitmap, you should call the Q3Bitmap_Empty function to dispose of that memory.
You can use the Q3DrawContext_SetMask function to set the mask of a draw context.
TQ3Status Q3DrawContext_SetMask (
TQ3DrawContextObject context,
const TQ3Bitmap *mask);
The Q3DrawContext_SetMask function sets the mask of the draw context specified by the context parameter to the bitmap specified in the mask parameter. Q3DrawContext_SetMask copies the bitmap to internal QuickDraw 3D memory, so you can dispose of the specified bitmap after calling Q3DrawContext_SetMask .
You can use the Q3DrawContext_GetMaskState function to get the mask state of a draw context.
TQ3Status Q3DrawContext_GetMaskState (
TQ3DrawContextObject context,
TQ3Boolean *state);
You can use the Q3DrawContext_SetMaskState function to set the mask state of a draw context.
TQ3Status Q3DrawContext_SetMaskState (
TQ3DrawContextObject context,
TQ3Boolean state);
You can use the Q3DrawContext_GetDoubleBufferState function to get the double buffer state of a draw context.
TQ3Status Q3DrawContext_GetDoubleBufferState (
TQ3DrawContextObject context,
TQ3Boolean *state);
You can use the Q3DrawContext_SetDoubleBufferState function to set the double buffer state of a draw context.
TQ3Status Q3DrawContext_SetDoubleBufferState (
TQ3DrawContextObject context,
TQ3Boolean state);
The Q3DrawContext_SetDoubleBufferState function sets the double buffer state of the draw context specified by the context parameter to the value specified in the state parameter. Set state to kQ3True if you want the double buffering enabled and to kQ3False otherwise. When you enable double buffering, the active buffer is the back buffer.
Previous | QD3D Book | Overview | Chapter Contents | Next |